import HTTP from '../../../utils/http.js';
import { API, API_GENERATE } from '../../../config/api.js';


class PlanService {
	initAPI (orderType) {
		this.url = DETAILS[orderType];
	}
	//敞口详情
	baseIndoDetail (params = {}) {
		let url = API.ORDER_DETAILS_BASE + params;
		return HTTP.POST(API_GENERATE(url));
	}
	//撤销订单
	cancelOrder (params = {}) {
		return HTTP.POST(API_GENERATE(API.ORDER_REVOKE), params);
	}

}
module.exports = new PlanService();